package hbase.mapreduce;

import org.apache.hadoop.util.ProgramDriver;

/**
 * Offers choices for included MapReduce jobs.
 */
public class Driver {

  /**
   * Main entry point for jar file.
   *
   * @param args  The command line parameters.
   * @throws Throwable When the selection fails.
   */
  public static void main(String[] args) throws Throwable {
    ProgramDriver pgd = new ProgramDriver();
    pgd.addClass(InitData.class.getSimpleName(), InitData.class,
            "first init the hbase data");
    pgd.addClass(WordStat.class.getSimpleName(), WordStat.class,
      "second ,run hbase word stat example");
    pgd.addClass(ImportFromFile.class.getSimpleName(), ImportFromFile.class,
            "Usage: ImportFromFile tableName inputfile family:qualifier");
    pgd.addClass(AnalyzeData.class.getSimpleName(), AnalyzeData.class,
            "Usage: AnalyzeData table family:qulifier outputfile");
    pgd.addClass(ParseJsonMulti.class.getSimpleName(), ParseJsonMulti.class,
            "Usage: ParseJsonMulti inputTable family:qualifier linkTable infoTable");

    pgd.driver(args);
  }
}
